package com.github.pig.common.util;

import java.util.UUID;

/**
 * @author wf_sxf@163.com
 * @date 2018-06-26 9:22
 */
public class IdGenerate {
    public static String getUUID(){
        //获取UUID并转化为String对象
        String uuid = UUID.randomUUID().toString();
        //因为UUID本身为32位只是生成时多了“-”，所以将它们去掉就可
        uuid = uuid.replace("-", "");
       return uuid;
    }
}
